package org.apogee.mil.shared;

import java.io.Serializable;

public class User implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private int userID;
	private String userName;
	private int accessLevel;
	private int sessionId;
	private float testMinScore;
	private boolean redo;
	private String currentTest;
	
	public User() {
		this(0, "", 0);
	}
	
	public User(int userid, String username, int accesslevel) {
		this.userID = userid;
		this.userName = username;
		this.accessLevel = accesslevel;
		this.redo = true;
		this.currentTest = "";
	}
	
	public int getUserId() {
		return this.userID;
	}
	
	public String getUserName() {
		return this.userName;
	}
	
	public int getAccessLevel() {
		return this.accessLevel;
	}
	
	public void setSessionId(int id) {
		this.sessionId = id;
	}
	
	public int getSessionId() {
		return this.sessionId;
	}
	
	public void setTestMinScore(float minScore) {
		this.testMinScore = minScore;
	}
	
	public float getTestMinScore() {
		return this.testMinScore;
	}
	
	public void setRedo(boolean redo) {
		this.redo = redo;
	}
	
	public boolean getRedo() {
		return this.redo;
	}
	
	public void setCurrentTest(String test) {
		this.currentTest = test;
	}
	
	public String getCurrentTest() {
		return this.currentTest;
	}
}
